﻿using System.Xml.Serialization;

namespace FuiouPay.Models.Response {
    /// <summary>
    /// 统一下单响应报文
    /// </summary>
    [XmlRoot("xml")]
    public class WxPreCreateResponseInfo : FuiouResponseInfo {
        /// <summary>
        /// 支付通道对应的子商户识别码
        /// </summary>
        [XmlElement("sub_mer_id")]
        public string SubMerId { get; set; }

        /// <summary>
        /// 预支付交易会话标识,富友返回支付宝生成的预支付回话标识，用于后续接口调用中使用，该值有效期为2小时
        /// </summary>
        [XmlElement("session_id")]
        public string SessionId { get; set; }

        /// <summary>
        /// 二维码链接
        /// </summary>
        [XmlElement("qr_code")]
        public string QrCode { get; set; }

        /// <summary>
        /// 子商户公众号id
        /// </summary>
        [XmlElement("sub_appid")]
        public string SubAppid { get; set; }

        /// <summary>
        /// 子商户用户标识
        /// </summary>
        [XmlElement("sub_openid")]
        public string SubOpenid { get; set; }

        /// <summary>
        /// 公众号id
        /// </summary>
        [XmlElement("sdk_appid")]
        public string SdkAppid { get; set; }

        /// <summary>
        /// 时间戳，自1970年1月1日 0点0分0秒以来的秒数
        /// </summary>
        [XmlElement("sdk_timestamp")]
        public string SdkTimestamp { get; set; }

        /// <summary>
        /// 随字符串
        /// </summary>
        [XmlElement("sdk_noncestr")]
        public string SdkNoncestr { get; set; }

        /// <summary>
        /// 订单性情扩展字符串
        /// </summary>
        [XmlElement("sdk_package")]
        public string SdkPackage { get; set; }

        /// <summary>
        /// 签名方式，trade_type为JSAPI、LETPAY时才返回
        /// </summary>
        [XmlElement("sdk_signtype")]
        public string SdkSignType { get; set; }

        /// <summary>
        /// 签名
        /// </summary>
        [XmlElement("sdk_paysign")]
        public string SdkPaySign { get; set; }

        /// <summary>
        /// trade_type为APP时才返回
        /// </summary>
        [XmlElement("sdk_partnerid")]
        public string SdkPartnerId { get; set; }

        /// <summary>
        /// 富友生成的订单号,需要商户与商户订单号进行关联
        /// </summary>
        [XmlElement("reserved_fy_order_no")]
        public string ReservedFyOrderNo { get; set; }

        /// <summary>
        /// 富友交易日期
        /// </summary>
        [XmlElement("reserved_fy_settle_dt")]
        public string ReservedFySettleDt { get; set; }

        /// <summary>
        /// 渠道交易流水号，trade_type为FWC时返回(用于调起支付)
        /// </summary>
        [XmlElement("reserved_transaction_id")]
        public string ReservedTransactionId { get; set; }

        /// <summary>
        /// 富友系统内部追踪号
        /// </summary>
        [XmlElement("reserved_fy_trace_no")]
        public string ReservedFyTraceNo { get; set; }

        /// <summary>
        /// 支付参数
        /// </summary>
        [XmlElement("reserved_pay_info")]
        public string ReservedPayInfo { get; set; }

        /// <summary>
        /// 条码流水号，用户账单二维码对应的流水
        /// </summary>
        [XmlElement("reserved_channel_order_id")]
        public string ReservedChannelOrderId { get; set; }

        /// <summary>
        /// 附加数据
        /// </summary>
        [XmlElement("reserved_addn_inf")]
        public string ReservedAddnInf { get; set; }
    }
}
